package com.fosu.service;

import com.alibaba.fastjson.JSONObject;
import com.fosu.common.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author zqa
 * @version 1.0
 * @date 2020/10/19 16:58
 */
public interface PublishService {

    /**返回所有标签对象
     * @param resp HttpServlet响应对象
     * @return ResponseResult 响应对象
     * @throws Exception
     */
    ResponseResult findAll( HttpServletResponse resp) throws Exception;

    /**保存发布的商品
     * @param jsonPram JSONObject对象
     * @param resp HttpServlet响应对象
     * @return ResponseResult 响应对象
     * @throws Exception
     */
    ResponseResult save(HttpServletRequest request, HttpServletResponse resp, JSONObject jsonPram)throws Exception  ;

    /**修改发布的商品
     * @param jsonPram JSONObject对象
     * @param resp HttpServlet响应对象
     * @return ResponseResult 响应对象
     * @throws Exception
     */
    ResponseResult update(HttpServletRequest request, HttpServletResponse resp, JSONObject jsonPram)throws Exception  ;

}
